From 0c1cfd8a341bb3da485387a4cca9dcef0284780a Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 22 Nov 2010 02:40:05 +0100 Subject: [PATCH] GtkStyle: handle scales when translating the detail string. --- gtk/gtkstyle.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 482cdf449a..1da8821a4f 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -1807,6 +1807,12 @@ transform_detail_string (const gchar *detail, gtk_style_context_add_class (context, "slider"); gtk_style_context_add_class (context, "scrollbar"); } + else if (strcmp (detail, "vscale") == 0 || + strcmp (detail, "hscale") == 0) + { + gtk_style_context_add_class (context, "slider"); + gtk_style_context_add_class (context, "scale"); + } else if (strcmp (detail, "menuitem") == 0) { gtk_style_context_add_class (context, "menuitem"); @@ -1823,7 +1829,8 @@ transform_detail_string (const gchar *detail, gtk_style_context_add_class (context, "menubar"); else if (strcmp (detail, "base") == 0) gtk_style_context_add_class (context, "background"); - else if (strcmp (detail, "bar") == 0) + else if (strcmp (detail, "bar") == 0 || + strcmp (detail, "progressbar") == 0) gtk_style_context_add_class (context, "progressbar"); else if (strcmp (detail, "toolbar") == 0) gtk_style_context_add_class (context, "toolbar"); -- 2.30.2